package com.hsnn.medstgmini.model;

public enum IsStatus {

	yes("1", "是"), no("0", "否"),unknown("9","未知");

	private String key;
	private String value;

	private IsStatus(String key, String value) {
		this.key = key;
		this.value = value;
	}

	public static String getName(String key) {
		for (IsStatus status : IsStatus.values()) {
			if (status.key.equals(key)) {
				return status.value;
			}
		}
		return "";
	}

	public String getKey() {
		return key;
	}

	public void setKey(String key) {
		this.key = key;
	}

	public String getValue() {
		return value;
	}

	public void setValue(String value) {
		this.value = value;
	}
}